package com.tanhua.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * 桃花传音-语音实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "voice")
public class Voice implements Serializable {
    @Id
    private ObjectId id;
    private Long userId; //发送语音用户id
    private String gender; //发送语音用户性别
    private String soundUrl;//语音文件存储地址
    private Long createDate; //创建时间

}
